home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 3 / ACE CD 3.iso / files / docs / hyperc2.lha / Hypercache.doc1 < prev    next >
Text File  |  1995-01-28  |  8KB  |  159 lines

  1.  
  2.       ·
  3.       :    ¦    .     _________                 ________       _____________
  4. ._____¦    |         ·   __   / :   ___________/   _    \      \   __  _   /
  5. |     \    |____:    :     \_/ -A : \______    \    |    \_ _:  \_/     \_/
  6. |      \   ¦    |    ¦      \_  ··D_  /   /   _/    |     /  |___/       \_
  7. |    :     :    |    |_______/  `N· _/    \    \_________/   |   \________/
  8. ¦    |_____¦    ¦    |           :  \__________/      \      ¦    \_
  9. :    :    \__________|                                 \___________/
  10. .    ·                          
  11.      .                       »»»» PRESENTS ««««
  12.  
  13.                                  HYPERCACHE
  14.                                  ==========
  15.                                                  TYPED BY SHARD
  16.                                                  
  17. HISTORY
  18. -------
  19.                                                  
  20. NEW SUMMARY VERSION 1.01C
  21.  
  22. The  new  version of Summary included on this diskette cures an infrequent problem
  23. with some systems which caused Summary to not locate all active caches.
  24.     
  25. CHANGES FOR VERSION 1.01B
  26.  
  27. The diskchange logic code has been replaced, enabling more effective determination
  28. of disk changes, particularly on removable media where more than one filesystem is
  29. being  run  on  that  device  (eg:  DF0 with both AmigaDOS and an MSDOS filesystem
  30. active)
  31.    
  32. The  device  search routine has been revised, eliminating infrequent enforcer hits
  33. that may have occurred on some systems in earlier versions.
  34.  
  35. The cache is approximately 25% faster than the initial 1.01 release.
  36.  
  37. CHANGES FOR VERSION 1.01
  38.  
  39. Version 1.01 is approximately 35% faster than version 1.0
  40.  
  41.  
  42. HINTS, CAVEATS
  43.  
  44. What do "lines", "sets", and "prefetch" mean?
  45.  
  46. A set is a completely independant cache for your device.  Rather than running only
  47. one  cache  when you start HyperCache, it sets up several, as defined by the value
  48. of  your  "sets"  parameter,  or 8 by default.  In this way, if a sector cannot be
  49. found  in  one cache, it may be found in another.  Although transparent to you, it
  50. increases  the  chance  a  sector  will  be found in the cache (known as your "Hit
  51. Ratio").
  52.  
  53. The  amount  of "prefetch", which defaults to 4 sectors, refers to the size of the
  54. sector  groups  which HyperCache moves to and from the actual device.  If prefetch
  55. is  4,  for example, HyperCache will never read less than 4 sectors at a time from
  56. the device.  Not only is it more efficient to read several sectors at once, but it
  57. can  also  increase  your  performance, since when your application wants the next
  58. sectors  from  the  device, they are often already in memory, even before they are
  59. needed!
  60.  
  61. The  number  of  "lines"  refers to the number of these prefetch sector groups per
  62. "set".    Thus,  at default, you have 8 sets each with 32 lines of 4 sectors each.
  63. The  overall  size  of the cache can thus be computed as LINES * SETS * PREFETCH *
  64. 512.  (Here 512 is the number of bytes per sector).
  65.  
  66. Changing the cache size:
  67.  
  68. The  default  cache  geometry is 4 prefetch, 8 sets, and 32 lines.  If you wish to
  69. double  the  size of the cache, you can double any one of these parameters.  It is
  70. generall  suggested  that  you  double  the  number  of lines or sets, rather than
  71. prefetch.    For  example, to set up a one megabyte cache on DH0:, you would enter
  72. the following:
  73.  
  74. HyperCache -v dh0 -l 64        // Recommended for 68000 systems
  75. or
  76. HyperCache -v dh0 -s 16        // Recommended for accelerated systems
  77.  
  78. The number of "sets" is actually the number of independant caches that will be set
  79. up  for  that  device,  and  "lines"  is  the  size  of  each one of those caches.
  80. Increasing the number of sets normally increases the cache hit ratio, but requires
  81. slightly  more  CPU  to  locate  a  sector  in  the cache.  For slow media or fast
  82. processors,  this is recommended as the setting to increase.  For a standard 68000
  83. CPU with a fast hard drive, we recommend increasing the number of lines instead.
  84.  
  85. The  -p parameter allows you to specify the minimum number of sectors that will be
  86. read  from  the  device,  regardless  of how few an application actually requests.
  87. Under  normal  circumstances,  this  can increase performance significantly.  On a
  88. very  fragmented drive, however, it can actually hurt performance.  If this is the
  89. case,  it  is suggested you defragment your hard drive or decrease the prefetch to
  90. 2:
  91.  
  92. HyperCache -v dh0 -p 2 -s 32
  93.  
  94. [  Note that you may supply any one, two, or three of the -s, -l, and -p options. 
  95. Those that are not supplied will retain their default values.  ]
  96.  
  97. You  may wish to experiment with these values to determine which provides the best
  98. results for your particular system and usage.
  99.  
  100. If  you are having trouble getting HyperCache to detach from the command line, ie:
  101. you  cannot  close  the  Shell  or  CLI  window from which it was run, remember to
  102. include  the  -n  parameter  on  the  command line.  This prevents HyperCache from
  103. displaying  its startup information and locking the output stream for that window.
  104.  
  105. When  using  a  backup  program  and  writing to a floppy disk, you should disable
  106. caching  on  that  floppy  if you intend to verify your writes.  If you fail to do
  107. this,  the  backup  program  will verify what it has just written against what was
  108. retained  in  the  cache, which is pointless.  You need only do this for the drive
  109. you are writing to.  HyperCache may be left active on all other devices.
  110.  
  111. It  is  recommended  that  you  disable  HyperCache  on any drive which you may be
  112. performing  low-level repairs to, such as a disk salvage operation, DiskDoctor, or
  113. a file re-orginization process.  HyperCache will not normally interfere with these
  114. operations,  and  has never shown to be incompatible with them, but it is still an
  115. advisable safety precaution.
  116.  
  117. Users  of  68020-based  systems  may  opt  to  use  the  special  68030 version of
  118. HyperCache  included  in  this  distribution,  although  the  code itself has been
  119. optimized with the 68030 processor in mind.
  120.  
  121. Some  users  have  experienced  problems  when starting Consultron's CrossPC after
  122. starting  HyperCache.    If  you experience such problems, try starting HyperCache
  123. after CrossPC.  This only effects drives which CrossPC will share with AmigaDOS.
  124.  
  125. If  you  are  not receiving as big a performance jump as you had expected, you may
  126. want to check your hard drive for fragmentation.  Fragmentation (which means large
  127. files  are  broken up into smaller pieces and scattered across the disk) hurts the
  128. performance  of  HyperCache  significantly.  To defragment your drive, you may use
  129. any  of  several  available  commercial  and  shareware  hard  drive reorganizers.
  130. Backing  up your drive, formatting it, and restoring it will have the same effect,
  131. but of course takes more time.
  132.  
  133. Problems with Certain Devices and Controllers:
  134.  
  135. Some users have reported problems with the HardFrame controller as well as certain
  136. ICD  controllers.    If  you  have  such  a controller, and have been experiencing
  137. problems  with  it,  please  indicate  this  on  your  registration  card.  We are
  138. continually  revising  the  product to enhance its compatibility with non-standard
  139. controllers, and may have a fix for you.
  140.  
  141. HyperCache  has  been  optimized for use with the OFS, FFS, and MSDOS filesystems,
  142. all  of  which  employ  a  512  byte sector size.  If you are using a device which
  143. deviates  from the 512 byte normal, please contact us, as we can provide a version
  144. which  is far more generic in its approach to the filesystem (although at a slight
  145. cost in performance).
  146.  
  147.  
  148. Please  note  that  for  the  protection  of  the  customer  and  the authors, all
  149. executables on this distribution disk are serialized and traceable.
  150.  
  151. If  you  are  impressed  enough  to consider giving a copy of your HyperCache to a
  152. friend, don't!  :-)
  153.  
  154. All product names are trademarks of their respective owners.
  155.  
  156.  
  157.  
  158. ------------------------------------END-------------------------------------------
  159.